#!/usr/bin/env python
# encoding: UTF-8

__author__ = "Qiangning Hong <hongqn@gmail.com>"
__version__ = "$Revision: 2 $"
__date__ = "$Date: 2006-11-15 18:25:56 +0000 (Wed, 15 Nov 2006) $"

import logging
import wx

class TickerFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None, title="Simple Ticker")

def main():
    from optparse import OptionParser
    parser = OptionParser(version=__version__)
    parser.add_option('-v', '--verbose', action='store_true')
    parser.add_option('-q', '--quiet', action='store_true')
    global options
    options, args = parser.parse_args()

    logging.basicConfig(
            level=(options.quiet and logging.WARNING
                    or (options.verbose and logging.DEBUG or logging.INFO)),
            format="%(asctime)s %(message)s",
            datefmt='%m/%d %H:%M:%S')

    app = wx.App()
    TickerFrame().Show()
    app.MainLoop()

if __name__ == '__main__':
    main()
